<%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2021/3/26
  Time: 9:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    pageContext.setAttribute("msg","张洋");
    request.setAttribute("msg","刘郎");
    session.setAttribute("msg","马彩云");
    request.setAttribute("arr",new String[]{"张帆","曹林","桂群","满贵","牛库鲁是-群"});
%>
<h1>
    ${msg}
</h1>
<h1 style="color: red;border: 2px solid red;height: 50px;">
    <%--报错${msg.title}--%>
    ${sessionScope.msg}
</h1>
<h2>
    ${arr["2"]},    ${arr['1']}
</h2>
<h1 style="color: red;border: 2px solid red;height: 50px;">
    ${news.title}
</h1>
<hr/>
<h2>
    ${paramValues.xxx}
    ${param.id}==requst.getParameter("xx")
</h2>
<h2>
    ${pageContext.request.contextPath}
    ${requestScope.contextPath}
    <%--<%

        request.getContextPath();
        request.getAttribute("contextPath");
    %>--%>
</h2>
</body>
</html>
